package com.trade.module.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description:用户角色实体类
 *
 * @Version v1.0 2017/4/21 20:28
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "base_user_role")
public class UserRole extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 5127802578282150713L;

    /**
     * Field description：用户ID
     */
    @Column(
            name = "user_id",
            nullable = false,
            length = 64
    )
    private String userId;

    /**
     * Field description：角色ID
     */
    @Column(
            name = "role_id",
            nullable = false,
            length = 64
    )
    private String roleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
